
// import haxe.ds.Array;
// import oimo.common.Setting;
// import oimo.dynamics.rigidbody.RigidBody;

import { RigidBody } from "../../../rigidbody/RigidBody";
import { Setting } from "../../../../common/Setting";
import { ContactSolverInfoRow } from "./ContactSolverInfoRow";

/**
 * numberernal class.
 */

export class ContactSolverInfo {
	b1: RigidBody;
	b2: RigidBody;

	numRows: number;
	rows: Array<ContactSolverInfoRow>;

	constructor() {
		this.b1 = null;
		this.b2 = null;

		this.numRows = 0;
		this.rows = new Array<ContactSolverInfoRow>(Setting.maxManifoldPoints);
		for (let i = 0; i < this.rows.length; ++i) {
			this.rows[i] = new ContactSolverInfoRow();
		}
	}

}
